// 初始化导航栏

let menu = document.querySelectorAll('.menu')
menu.forEach(function(el,index){
    el.addEventListener('mouseenter',function(){
        el.children[1].style.display = 'block'
        el.style.zIndex = '2'
        document.querySelector('.swiper-container').style.zIndex = '-1'
    })
    el.addEventListener('mouseleave',function(){
        el.children[1].style.display = 'none'
        document.querySelector('.swiper-container').style.zIndex = '1'
    })
})
var secondMenu = document.querySelectorAll('.secondMenu')
secondMenu.forEach(function(el){
    for(var i = 0; i<el.children.length;i++){
        el.children[i].style.animationDelay = i * 100 + 'ms'
    }
})